import request from './index'

// 获取任务执行日志列表
export function getJobLogList(params) {
  return request({
    url: '/job/log/list',
    method: 'get',
    params
  })
}

// 获取日志详情
export function getJobLogDetail(id) {
  return request({
    url: `/job/log/${id}`,
    method: 'get'
  })
}

// 清理任务日志
export function cleanJobLog(params) {
  return request({
    url: '/job/log/clean',
    method: 'delete',
    params
  })
}
